package com.itgungnir.diyshuo.activity.main_activity;

import android.support.v4.app.FragmentActivity;

/**
 * 用在MainActivity中的接口统一管理类
 */
public class MainContract {
    interface View {
        // 初始化所有的Fragment
        void initFragments();

        // 当点击RadioGroup中的某个RadioButton时，更换Fragment
        void changeFragment(int checkedId);
    }

    interface Model {
        void initFragments(FragmentActivity activity);

        void changeFragment(FragmentActivity activity, int checkedId);
    }

    interface Presenter {
        void initFragments(FragmentActivity activity);

        void changeFragment(FragmentActivity activity, int checkedId);
    }
}